package com.lzs.esubscribe.dto;

import com.lzs.esubscribe.entity.ESUrl;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class UrlListDTO extends ESUrl implements Serializable {
    /**
     * list
     */
    @ApiModelProperty(value = "子级列表")
    private List<UrlListDTO> childList = new ArrayList<>();

    public void addChild(UrlListDTO childNode){
        this.childList.add(childNode);
    }
}
